package com.kingdee.eas.custom.bpmworkflow.cbbill.finanContractBill;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;



public abstract class AbstractFinanContractResponseFacadeControllerBean extends AbstractBizControllerBean implements FinanContractResponseFacadeController
{
    protected AbstractFinanContractResponseFacadeControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("55325508");
    }

    public String _ApproveClose(Context ctx, String strBTID, String strBOID, String procInstID, String processInstanceResult, String strComment, String dtTime, String soapHeader, String auditorNum) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("18135748-8f11-4cc2-a3a1-91de34598c66"), new Object[]{ctx, strBTID, strBOID, procInstID, processInstanceResult, strComment, dtTime, soapHeader, auditorNum});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)__ApproveClose(ctx, strBTID, strBOID, procInstID, processInstanceResult, strComment, dtTime, soapHeader, auditorNum);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String __ApproveClose(Context ctx, String strBTID, String strBOID, String procInstID, String processInstanceResult, String strComment, String dtTime, String soapHeader, String auditorNum) throws BOSException
    {    	
        return null;
    }

    public String _Audit(Context ctx, String strBTID, String strBOID, String procInstID, String strStepName, String strApproverId, String action, String strComment, String dtTime, String soapHeader) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("33baf9d2-eb9a-436a-ae69-5491d2c8d233"), new Object[]{ctx, strBTID, strBOID, procInstID, strStepName, strApproverId, action, strComment, dtTime, soapHeader});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)__Audit(ctx, strBTID, strBOID, procInstID, strStepName, strApproverId, action, strComment, dtTime, soapHeader);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String __Audit(Context ctx, String strBTID, String strBOID, String procInstID, String strStepName, String strApproverId, String action, String strComment, String dtTime, String soapHeader) throws BOSException
    {    	
        return null;
    }

    public String _CreateResult(Context ctx, String strBTID, String strBOID, String success, String procInstID, String procURL, String strMessage, String soapHeader) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("e10daa78-df96-4695-8d4a-847b97048f15"), new Object[]{ctx, strBTID, strBOID, success, procInstID, procURL, strMessage, soapHeader});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)__CreateResult(ctx, strBTID, strBOID, success, procInstID, procURL, strMessage, soapHeader);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String __CreateResult(Context ctx, String strBTID, String strBOID, String success, String procInstID, String procURL, String strMessage, String soapHeader) throws BOSException
    {    	
        return null;
    }

    public String _Rework(Context ctx, String strBTID, String strBOID, String procInstID, String strStepName, String strApproverId, String action, String strComment, String dtTime, String soapHeader) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("2f039ae2-3118-437e-aeeb-8ff9d3d82983"), new Object[]{ctx, strBTID, strBOID, procInstID, strStepName, strApproverId, action, strComment, dtTime, soapHeader});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)__Rework(ctx, strBTID, strBOID, procInstID, strStepName, strApproverId, action, strComment, dtTime, soapHeader);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String __Rework(Context ctx, String strBTID, String strBOID, String procInstID, String strStepName, String strApproverId, String action, String strComment, String dtTime, String soapHeader) throws BOSException
    {    	
        return null;
    }

    public String _UpdateBusinessData(Context ctx, String strBTID, String strBOID, String procInstID, String strStepName, String strApproverId, String strXML, String dtTime, String soapHeader) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("2640dbb6-e326-4569-8eda-ccd84cecc033"), new Object[]{ctx, strBTID, strBOID, procInstID, strStepName, strApproverId, strXML, dtTime, soapHeader});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)__UpdateBusinessData(ctx, strBTID, strBOID, procInstID, strStepName, strApproverId, strXML, dtTime, soapHeader);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String __UpdateBusinessData(Context ctx, String strBTID, String strBOID, String procInstID, String strStepName, String strApproverId, String strXML, String dtTime, String soapHeader) throws BOSException
    {    	
        return null;
    }

}